package crudfx.control;
import javax.swing.*;
import java.awt.*;
import crudfx.interop.*;
import crudfx.util.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.border.*;
/**
 * @profile desktop
 * @author Sergey Surikov
 */
public class ArtButton extends StandardButton{
    override public var text="" on replace{};
    public var rollover:javax.swing.Icon on replace{
        jButton.setRolloverIcon(rollover);
        };
    init{
        jButton.setText("");
        jButton.setRolloverIcon(rollover);
        jButton.setFocusPainted(false);
        jButton.setContentAreaFilled(false);
        jButton.setRolloverEnabled(true);
        //jButton.setToolTipText(tooltip);
        jButton.setBorder(new EmptyBorder(0,0,0,0));
        //jButton.setBorder(null);
        jButton.setPreferredSize(new Dimension(
            this.icon.getIconWidth()
            ,this.icon.getIconHeight()));
        //jButton.setCursor(Tools.handCursor);
        }
    override public function getJComponent():JComponent{
        return jButton;
        }
}
